home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / DateFormatZoneData_sr.java < prev    next >
Text File  |  1998-09-22  |  3KB  |  83 lines

  1.  /*
  2.  * @(#)DateFormatZoneData_sr.java    1.5 97/12/05
  3.  *
  4.  * (C) Copyright Taligent, Inc. 1996 - All Rights Reserved
  5.  * (C) Copyright IBM Corp. 1996 - All Rights Reserved
  6.  *
  7.  * Portions copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved.
  8.  *
  9.  *   The original version of this source code and documentation is copyrighted
  10.  * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These
  11.  * materials are provided under terms of a License Agreement between Taligent
  12.  * and Sun. This technology is protected by multiple US and International
  13.  * patents. This notice and attribution to Taligent may not be removed.
  14.  *   Taligent is a registered trademark of Taligent, Inc.
  15.  *
  16.  * Permission to use, copy, modify, and distribute this software
  17.  * and its documentation for NON-COMMERCIAL purposes and without
  18.  * fee is hereby granted provided that this copyright notice
  19.  * appears in all copies. Please refer to the file "copyright.html"
  20.  * for further important copyright and licensing information.
  21.  *
  22.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
  23.  * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
  24.  * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  25.  * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
  26.  * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
  27.  * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
  28.  *
  29.  */
  30.  
  31. package java.text.resources;
  32.  
  33. import java.util.ListResourceBundle;
  34.  
  35. /**
  36.  * Supplement package private date-time formatting zone data for DateFormat.
  37.  * DateFormatData used in DateFormat will be initialized by loading the data
  38.  * from LocaleElements and DateFormatZoneData resources. The zone data are
  39.  * represented with the following form:
  40.  * {ID, long zone string, short zone string, long daylight string,
  41.  * short daylight string, representative city of zone}, where ID is
  42.  * NOT localized, but is used to look up the localized timezone data
  43.  * internally. Localizers can localize any zone strings except
  44.  * for the ID of the timezone.
  45.  
  46.  * @see          ListResourceBundle
  47.  * @see          Format
  48.  * @see          DateFormatData
  49.  * @see          LocaleElements
  50.  * @see          SimpleDateFormat
  51.  * @see          TimeZone
  52.  * @version      1.5 12/05/97
  53.  * @author       Chen-Lieh Huang
  54.  */
  55. //  Serbia DateFormatZoneData
  56. //
  57. public final class DateFormatZoneData_sr extends ListResourceBundle
  58. {
  59.     /**
  60.      * Overrides ListResourceBundle
  61.      */
  62.     public Object[][] getContents() {
  63.         return contents;
  64.     }
  65.  
  66.     private static final String kZoneStrings[][] = {
  67.         // The first row below is the default TimeZone for this locale.
  68.         // Zones should have unique names and abbreviations within
  69.         // this locale.  Names and abbreviations may be identical
  70.         // if the corresponding zones really are identical.  E.g.:
  71.         // America/Phoenix and America/Denver both use MST; these
  72.         // zones differ only in that America/Denver uses MDT as well.
  73.         {"Africa/Casablanca", "GMT", "GMT", "GMT", "GMT"} // To be filled in with localized time zone names
  74.     };
  75.  
  76.     private static final String kLocalPatternChars = "GanjkHmsSEDFwWxhKz";
  77.  
  78.     static final Object[][] contents = {
  79.         {"zoneStrings",         kZoneStrings},
  80.         {"localPatternChars",   kLocalPatternChars},
  81.     };
  82. }
  83.